﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SubGroupViewModel.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   The group view model.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace mPassRT.ViewModels.Group
{
    using KeePassLib;

    /// <summary>The group view model.</summary>
    public class SubGroupViewModel : ItemViewModel
    {
        #region Constructors and Destructors

        /// <summary>Initializes a new instance of the <see cref="SubGroupViewModel"/> class.</summary>
        /// <param name="group">The group.</param>
        public SubGroupViewModel(PwGroup group)
        {
            this.Group = group;
        }

        #endregion

        #region Public Properties

        /// <summary>Gets the name.</summary>
        public override string Name
        {
            get
            {
                return this.Group.Name;
            }
        }

        #endregion

        #region Properties

        /// <summary>Gets the group.</summary>
        public PwGroup Group { get; private set; }

        #endregion
    }
}